package com.itheima.edu.info.manager.controller;

import com.itheima.edu.info.manager.domain.Student;

import java.util.Scanner;

public class OtherStudentController extends BaseStudentController {
    private Scanner sc = new Scanner(System.in);
    @Override
    public Student inputStudentInfo(String id) {
        System.out.println("请输入姓名");
        String name = sc.next();
        System.out.println("请输入年龄");
        String age = sc.next();
        System.out.println("请输入生日");
        String birthday = sc.next();
        //将学生信息封装为学生对象
        Student st = new Student(id, name, age, birthday);
        return st;

    }
}
